<extend name="Layout/ins_page" />
<block name="content">

	<div class="operate panel panel-default">
		<div class="panel-body">
			<div class="pull-left">
				<a onclick="javascript:history.go(-1);" class="btn btn-sm btn-primary">返回</a>
			</div>
		</div>
	</div>
	<div class="ul_table ul_table_responsive">
		<ul>
			<li class="thead">
				<span class="col-8">编号</span>
				<span class="col-8">发起人</span>
				<span class="col-10">流程标题</span>
				<!--  <span class="col-20 autocut">指派给</span>-->
				<span class="col-3">总流程</span>
				<span class="col-3">所属流程</span>
				<span class="col-12">发起时间</span>
				<span class="col-12">期望完成时间</span>
				
				<span class="col-6">状态</span>
				<span class="col-6 text-center">操作</span>
			</li>
			<empty name="list">
				<li class="no-data">
					没找到数据
				</li>
				<else/>
				<foreach name="list" item="vo">
					<li class="tbody">
						<span class="col-8 ">{$vo.task_no}</span>
						<span class="col-8 ">{$vo.user_name}</span>
						<span class="col-10 "><a href="{:U('read','id='.$vo['id'])}">{$vo.name}</a></span>
						<!--<span class="col-20 autocut">&nbsp;{$vo.executor|show_contact}</span>-->
						<span class="col-3">{$task_parent.total_process}</span>
						<span class="col-3">{$vo.step_process}</span>
						<span class="col-12">{$vo.create_time|to_date='Y-m-d H:i'}&nbsp;</span>
						<span class="col-12">{$vo.expected_time|substr=0,16}&nbsp;</span>
						<span class="col-6">{$vo.status|task_status}&nbsp;</span>
						<span class="col-6 col-sm-end">
							<if condition="($vo.status lt 30) and ($vo.user_id eq $user_id)">
								<a href="{:U('edit','id='.$vo['id'])}">修改</a>&nbsp;
							</if>
							<if condition="($vo.user_id eq $user_id) and ($vo.pid == 0) and ($vo.status lt 30)">
								<a href="{:U('del','id='.$vo['id'])}">删除</a>
							</if>
						</span>
					</li>
				</foreach>
				<div class="pagination">
				</div>
			</empty>
		</ul>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		$(document).ready(function() {
			set_return_url();
		});
	</script>
</block>